<template>
    <div class="header_component">
        <div class="fl">
            <img src="../../static/common/img/header-logo.png" alt="" style="height:35px;width:79px;margin-top:-4px;">
            <span class="bold col_333 zj_name">租街综合管理平台</span>
        </div>
        <div class="fr">
            <ul class="cursor overflow handle_btn">
                <li class="fl">超级管理员&nbsp;&nbsp;&nbsp;|</li>
                <li class="fl">修改密码&nbsp;&nbsp;&nbsp;|</li>
                <li class="fl" @click="loginOut">退出登录</li>
            </ul>
        </div>
    </div>
</template>

<script>
  export default {
    name: 'header-component',
    methods:{
      // 退出登录
      loginOut () {
        let self = this
        sessionStorage.clear()
        self.$router.push('/login')
      }
    }
  }
</script>

<style lang="scss">
    .header_component{
        padding-left:20px;
        height:60px;
        box-shadow: 0px 0px 17px -2px #3c3c3c;
        line-height: 60px;
        background-color: #fff;
        position: relative;
        z-index: 10;
        .zj_name{
            font-size:22px;
            padding-left:10px;
        }
        .handle_btn{
            li{
                padding:0 8px;
            }
            li:hover{
                color:#409EFF;
            }
        }
    }
</style>